<%@ page language="java" contentType="text/html;charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="my" tagdir="/WEB-INF/tags"%>

<h1>
	<fmt:message key="security.signup" />
</h1>

<form:form modelAttribute="userAccount" action="createUser"
	method="post" acceptCharset="utf-8">
	<form:errors path="" cssClass="error" />
	<p>
		<my:edit-input formPath="username" labelCode="security.signup.login">
			<form:input path="username" />
		</my:edit-input>
	</p>
	<p>
		<my:edit-input formPath="password" labelCode="security.signup.password">
			<form:password path="password" />
		</my:edit-input>
	</p>
	<p>
		<my:edit-input formPath="confirmPassword"
			labelCode="security.signup.confirmPassword">
			<form:password path="confirmPassword" />
		</my:edit-input>
	</p>
	<p>
		<button type="submit">
			<fmt:message key="security.signup.createUser" />
		</button>
	</p>
</form:form>